public class test {
    public static void main(String[] args) {
        // 创建
        Lab[] labs = new Lab[]{
                new Lab("Lab 1", 4, 100),
                new Lab("Lab 2", 3, 50),
                new Lab("Lab 3", 5, 150)
        };
        Student student = new Student("John Doe", 18, labs);
        // 打印学生的实验室清洁记录
        for (Lab lab : student.getLabs()) {
            System.out.println(lab.getName() + ": " + lab.getIncome());
        }

        // 计算学生的总收入和总纳税额
        double totalIncome = student.getTotalIncome();
        double totalTax = student.getTotalTax();
        System.out.println("Total income: " + totalIncome);
        System.out.println("Total tax: " + totalTax);
        System.out.println("Total actual income: " + (totalIncome - totalTax));
    }
}
